cmake_minimum_required(VERSION 2.8.3)
project(imu_gps_localization)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")

find_package(catkin REQUIRED COMPONENTS
        roscpp
        nav_msgs
        )


add_subdirectory(imu_gps_fusion)

include_directories(
        ${catkin_INCLUDE_DIRS}
        ${EIGEN3_INCLUDE_DIR}
        imu_gps_fusion/include
        ros_wrapper/include
)

add_library(ros_wrapper_lib
        rosWrapper/src/LocalizationWrapper.cpp
        )
target_link_libraries(ros_wrapper_lib
        ${catkin_LIBRARIES}
        imu_gps_fusion_lib
        )

## Localization node.
add_executable(${PROJECT_NAME}_node rosWrapper/src/node.cpp)
target_link_libraries(${PROJECT_NAME}_node
        ros_wrapper_lib
        )